<?php
/**
 * Created by PhpStorm.
 * User: mac
 * Date: 2021/6/11
 * Time: 10:26 PM
 */

namespace Modules\Common\Services;


use Modules\Common\Contract\Interfaces\MySqlOperation;


class MySqlService
{
    /** 添加分类提交
     * @return mixed
     */
    public function store(MySqlOperation $operation){
      return  $operation->store();
    }

    /**put.re/{id}  显示单个分类信息
     * @return mixed
     */
    public function update(MySqlOperation $operation){
        return $operation->update();
    }

    /**删除
     * @return mixed
     */
    public function destroy(MySqlOperation $operation) {
        $operation->destroy();
    }

    /**get.re/{id}  显示单个分类
     * @return mixed
     */
    public function show(MySqlOperation $operation){
        return $operation->show();
    }

    /**get.re/{id}/edit    更新分类
     * @return mixed
     */
    public function edit(MySqlOperation $operation){
        return $operation->edit();
    }

    /**get.re/create 添加分类
     * @return mixed
     */
    public function create(MySqlOperation $operation){
        return $operation->create();
    }

    /**get.re 全部分类列表
     * @return mixed
     */
    public function index(MySqlOperation $operation){
        return $operation->index();
    }
}